<template>
  <div class="container">
    <div class="content">
      <itemTags :type="4" @checked="changeHandler"></itemTags>
      <videolist v-if="isShow" :miva="dataList"></videolist>
    </div>
  </div>
</template>

<script>
// api
import { getProjectList } from "@/api/miva";
// item
import itemTags from "@/components/miva-item/item-tags";
import videolist from "@/components/videoList";
export default {
  components: {
    itemTags,
    videolist
  },
  data() {
    return {
      show: false,
      isShow: true,
      dataList: []
    };
  },
  created() {
    this.$store.commit("SETTING_HEADER_ACTIVE", 1);
    this.$store.commit("SETTING_HEADER_ACTIVE1", 0);
  },
  async mounted() {
    await this.getProjectList();
  },
  methods: {
    async getProjectList() {
      const res = await getProjectList({ type: 4 });
      this.dataList = res.data;
    },
    changeHandler(data) {
      this.dataList = data;
    }
  }
};
</script>

<style lang="less">
.container {
  background: #fff;
  .content {
    width: 1200px;
    margin: 0 auto;
  }
}
</style>